<template>
  <div>
    <div class="header">
        <div class="header-left" @click="hiddenNormalPlayer"></div>
        <div class="header-title">
          <h3>{{currentSong.name}}</h3>
          <p>{{currentSong.singer}}</p>
        </div>
        <div class="header-right"></div>
    </div>
  </div>
</template>
<script>
import { mapActions,mapGetters } from 'vuex'
export default {
  name: 'PlayerHeader',
  computed:{
    ...mapGetters([
      'currentSong'
    ])
  },
  methods: {
    ...mapActions([
      'setFullScreent',
      'setMiniPlayer'
    ]),
    hiddenNormalPlayer(){
      this.setFullScreent(false)
      this.setMiniPlayer(true)
    }
  },
}
</script>
<style scoped lang="scss">
 @import "../../assets/css/variable";
 @import "../../assets/css/mixin";
.header{
    width: 100%;
    height: 100px;
    // background-color: #f00;
    // @include bg_color();
    display: flex;
    justify-content: space-between;
    // position: relative;
    // z-index: 999;
    .header-right,.header-left{
        width: 84px;
        height: 84px;
        margin-top: 8px;
        // background-color: grey;
    }
    .header-left{
        @include bg_img('../../assets/images/down')
    }
    .header-right{
        // @include bg_img("../../assets/images/account")
    }
    .header-title{
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        text-align: center;
        color: #fff;
        @include font_size($font_medium)
    }
}
</style>
